#!/usr/bin/env python

import os

def test_create_directory():
    os.mkdir("test_directory")
    assert os.path.exists("test_directory")

def test_create_file():
    with open("test_file.txt", "w") as file:
        file.write("This is a test file.")
    assert os.path.isfile("test_file.txt")

def test_rename_file():
    os.rename("test_file.txt", "renamed_file.txt")
    assert os.path.isfile("renamed_file.txt")

def test_remove_file():
    os.remove("renamed_file.txt")
    assert not os.path.exists("renamed_file.txt")

def test_remove_directory():
    os.rmdir("test_directory")
    assert not os.path.exists("test_directory")

# Run the tests
if __name__ == '__main__':
    import pytest
    pytest.main()